<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/WEB-INF/jsp/admin/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/admin/inc/meta.jsp"%>
</head>  
  <body style="background:#E8F5FE; padding:15px 18px;" class="scroll_r">
<div id="right_w"><p>当前位置：系统管理 >>用户管理</p></div>
<table border="0" cellpadding="" cellspacing="1" align="center" width="98%" id="web_tab">
<caption style="text-align: right;margin-bottom:4px;">
<button class="but" onclick="location.href='${approot}/admin/${entity}/toAdd'">添加用户</button>
<button class="but" onclick="return delete_batch('${entity}','${approot}/admin/${entity}/list/menu/0/0')">批量删除</button>
</caption>
 <tr>
  <th width="4%"><input type="checkbox" name="all" value="all" onclick="select_all(this.checked)"/> </th>
  <th width="10%">会员名</th>
  <th width="10%">别名</th>
  <th width="10%">邮箱</th>
  <th width="6%">性别</th>
  <th width="10%">生日</th>
  <th width="6%">是否验证</th>
  <th width="6%">是否删除</th>
  <th width="12%">注册时间</th>
  <th width="16%">操作</th>
 </tr>
<c:forEach var="item" items="${page.items}">
 <tr>
  <td><input type="checkbox" name="ids" value="${item.id}"/></td>
  <td>${item.name}</td>
  <td>${item.nickName}</td>
  <td>${item.email}</td>
  <td>
   <c:choose>
  <c:when test="${item.sex=='1'}">男</c:when>
  <c:otherwise>女</c:otherwise>
  </c:choose>
  </td>
  <td><fmt:formatDate value="${item.birthday}" pattern="yyyy-MM-dd"/></td>
    <td>
  <c:choose>
  <c:when test="${item.isValidated=='1'}"> <img src="${approot}/resource/images/common/yes.gif"/> </c:when>
  <c:otherwise><img src="${approot}/resource/images/common/no.gif"/></c:otherwise>
  </c:choose>
  </td>
  <td>
  <c:choose>
  <c:when test="${item.isDelete=='1'}"> <img src="${approot}/resource/images/common/yes.gif"/> </c:when>
  <c:otherwise><img src="${approot}/resource/images/common/no.gif"/></c:otherwise>
  </c:choose>
  </td>
  
  <td><fmt:formatDate value="${item.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  <td>
  <a href="#" onclick="return modify_item('${entity}','${item.id}','isValidated','1','${approot}/admin/${entity}/list/menu/0/0')">通过验证</a>
  <a href="#" onclick="return modify_item('${entity}','${item.id}','isValidated','0','${approot}/admin/${entity}/list/menu/0/0')">撤销验证</a>
  <a href="#" onclick="return delete_item('${entity}','${item.id}','${approot}/admin/${entity}/list/menu/0/0')">删除</a>
  <a href="${approot}/admin/${entity}/toEdit/${item.id}">修改</a>
   </td>
 </tr>
 </c:forEach>
</table>
<%@ include file="/WEB-INF/jsp/admin/inc/page.jsp"%> 
</body>
</html>
